﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;

namespace _19_C_中的静态
{
    internal class Family
    {
        private static double totalIncome;

        private double income;

        public double Income { get { return income; } set { income = value; } }

        public static double TotalIncome { get { return totalIncome; } set { totalIncome = value; } }

        public Family()
        {

        }

        public static void Show() {
            Console.WriteLine("父类的静态Show()方法");
        }

        public void CalcIncome()
        {
            totalIncome += income;
        }
    }
}
